const app = getApp()
const db = wx.cloud.database()
Page({
  data: {
    piclist:'',
    picid:''
  },
  onLoad: function (options) {
    let picid= app.globalData.cateid
    console.log(app.globalData.cateid)
    wx.showLoading({
        title: '加载中',
      })
    db.collection('cate')
    .where({
        id:+ picid
    }).get().then((res) => {
        this.setData({
          piclist:res.data[0].images_src
        })
        wx.hideLoading()
    })
},
  
})